<div class="detail">
<div class="scroll_dt">
    <div class="logo">
        <a href="<?=DOMAIN?>">
            <p class="h1">Sudo</p>
            <p class="h3">Web Solutions</p>
        </a>
    </div>
    <div class="content" style="padding: 0px 10px; padding-bottom: 20px;">
        <div class="share_cat_nav">
            <ul>
            <?
            $share_cat_menu = $general->general_share_cat();
            foreach($share_cat_menu as $cat_menu) {
                ?>
                <li><a <?=$cat_menu['cat_id'] == $catId ? 'class="active"' : ''?> href="<?=generate_share_cat_url($cat_menu)?>"><?=$cat_menu['cat_name']?></a></li>
                <?
            }
            ?>
            </ul>
        </div>
        <div class="share_cat_title">
            <h1><?=$share->name?></h1>
        </div>
        <div class="share_cat_content">
        <?
        foreach($list_share as $share_item) {
            ?>
            <div class="share_cat_item">
                <div class="wrap">
                    <div class="img">
                        <a href="<?=generate_share_detail_url($share_item,array('cat_id'=>$share->id,'cat_name'=>$share->name))?>">
                            <img src="<?=share_img.$share_item['sha_picture']?>" alt="<?=$share_item['sha_title']?>" />
                        </a>
                    </div>
                    <a href="<?=generate_share_detail_url($share_item)?>">
                        <h2><?=$share_item['sha_title']?></h2>
                    </a>
                    <p><?=cut_string($share_item['sha_summary'],85)?></p>
                    <div class="meta">
                        <div class="date"><?=getTodayYesterdayString($share_item['sha_date'])?></div>
                        <div class="comment"><?=$share->share_total_comment($share_item['sha_id'])?></div>
                    </div>
                </div>
            </div>
            <?
        }
        ?>
        </div>
    </div>
</div>
</div><!-- End detail -->
<script>
$(document).ready(function() {
    var dt_scroll = $(window).height();
    $('.scroll_dt').slimScroll({
        height: dt_scroll,
        wheelStep: 2
    });
});
</script>